using System.Collections;
using System.Collections.Generic;
using System.Linq.Expressions;
using UnityEngine;
using UnityEngine.U2D;

public class Lesson14 : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        GameObject obj = new GameObject();
        SpriteRenderer r=obj.AddComponent<SpriteRenderer>();
        SpriteAtlas spriteatlas = Resources.Load<SpriteAtlas>("MyAtlas");
        r.sprite = spriteatlas.GetSprite("2");
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
